package com.xxx.service;

import com.xxx.dao.AccountDao;
import com.xxx.pojo.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/8/18 10:40
 * @Copyright 博为峰
 */
@Service("accountService")
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountDao accountDao;

    @Override
    public int addAccount(Account account) {
        return accountDao.insetAccount(account);
    }

    @Override
    public int delAccount(Integer id) {
        return 0;
    }

    @Override
    public int updateAccount(Account account) {
        return accountDao.updateAccount(account);
    }

    @Override
    public List<Account> queryAccount() {
        return null;
    }
}
